@echo off
chcp 65001

REM 启动后端
start cmd /k "cd /d %~dp0 & D:\Anaconda\envs\SenseVoice\python.exe -m uvicorn main:app --reload"

REM 启动前端
start cmd /k "cd /d %~dp0front\asrProject & npm run dev"

echo ==========================================
echo   SenseVoice 前后端已成功启动!
echo   前端地址: http://localhost:5173/
echo   后端接口: http://localhost:8000/
echo   请在新窗口查看服务日志
echo ==========================================
pause
